// src\setupProxy.js
const { createProxyMiddleware: proxy } = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(
        proxy('/githubSearch-api', {
            target: 'https://api.github.com',
            changeOrigin: true,
            pathRewrite: { '^/githubSearch-api': '' }
        })
    )
}